package com.jzg.jcptadmin.data.vo;
/**
 * author: gcc
 * date: 2016/11/16 10:19
 * email:
 */

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author: guochen
 * date: 2016/11/16 10:19
 * email: 
 */
public class UpDataResult  implements Parcelable {

    /**
     * Remark :
     * SelectedItem : [{"GroupID":"1","SelectedItemID":"2"},{"GroupID":"2","SelectedItemID":"1"}]
     */

    private String Remark;//补充内容
    /**
     * GroupID : 1
     * SelectedItemID : 2
     */

    private List<SelectedItemBean> SelectedItem;

    public String getRemark() {
        return Remark;
    }

    public void setRemark(String Remark) {
        this.Remark = Remark;
    }

    public List<SelectedItemBean> getSelectedItem() {
        return SelectedItem;
    }

    public void setSelectedItem(List<SelectedItemBean> SelectedItem) {
        this.SelectedItem = SelectedItem;
    }

    public static class SelectedItemBean implements Parcelable{

        private String GroupID;
        private String SelectedItemID;

        public String getGroupID() {
            return GroupID;
        }

        public void setGroupID(String GroupID) {
            this.GroupID = GroupID;
        }

        public String getSelectedItemID() {
            return SelectedItemID;
        }

        public void setSelectedItemID(String SelectedItemID) {
            this.SelectedItemID = SelectedItemID;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.GroupID);
            dest.writeString(this.SelectedItemID);
        }

        public SelectedItemBean() {
        }

        protected SelectedItemBean(Parcel in) {
            this.GroupID = in.readString();
            this.SelectedItemID = in.readString();
        }

        public static final Creator<SelectedItemBean> CREATOR = new Creator<SelectedItemBean>() {
            @Override
            public SelectedItemBean createFromParcel(Parcel source) {
                return new SelectedItemBean(source);
            }

            @Override
            public SelectedItemBean[] newArray(int size) {
                return new SelectedItemBean[size];
            }
        };
    }

    public UpDataResult() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.Remark);
        dest.writeTypedList(this.SelectedItem);
    }

    protected UpDataResult(Parcel in) {
        this.Remark = in.readString();
        this.SelectedItem = in.createTypedArrayList(SelectedItemBean.CREATOR);
    }

    public static final Creator<UpDataResult> CREATOR = new Creator<UpDataResult>() {
        @Override
        public UpDataResult createFromParcel(Parcel source) {
            return new UpDataResult(source);
        }

        @Override
        public UpDataResult[] newArray(int size) {
            return new UpDataResult[size];
        }
    };
}
